package com.heima.wemedia.feign;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import com.heima.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xrl
 * @Date: 2022/10/22  17:31
 * @Version 1.0
 * 自媒体用户
 */
@RestController
public class WmUserClient {
    @Autowired
    private WmUserService wmUserService;

    /**
     * 开通自媒体账号
     */
    @PostMapping("/api/v1/auth/ok")
    public ResponseResult ok(@RequestBody WmUser wmUser) {
        return wmUserService.ok(wmUser);
    }
}
